# This dockerfile is for spring boot jar app.
# Version 1.0

# Base images.
FROM 10.36.20.43:5000/linkmes:8u302-jdk-oraclelinux7

# Author.
MAINTAINER dev <dev@wisdytech.cn>

ADD ./target/ccdserver.jar /opt

#Set timezone
RUN  mkdir -p /var/log/ccdserver

ENV JAVA_OPTS=$JAVA_OPTS

# Define default command.
CMD java $JAVA_OPTS  -Djava.security.egd=file:/dev/./urandom -jar /opt/ccdserver.jar
#ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS  -Djava.security.egd=file:/dev/./urandom -jar /opt/pp.jar" ]

# Expose ports.
EXPOSE 9018
